package com.mall.seckill.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.seckill.model.SeckillActivity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Darren
 * @since 2022-09-28
 */
public interface ISeckillActivityService extends IService<SeckillActivity> {
    /**
     * 新增
     *
     * @param brand
     * @return
     */
    boolean addSeckillActivity(SeckillActivity seckillactivity);

    /**
     * 根据id删除
     *
     * @param id
     * @return
     */
    boolean deleteById(String id);

    /**
     * 更新
     *
     * @param brand
     * @return
     */
    boolean updateSeckillActivity(SeckillActivity seckillactivity);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    SeckillActivity getById(String id);

    /**
     * 根据条件查询全部数据
     *
     * @param brand
     * @return
     */
    List<SeckillActivity> selectList(SeckillActivity seckillactivity);

    /**
     * 分页查询
     *
     * @param brand
     * @return
     */
    Page<SeckillActivity> selectPage(Page<SeckillActivity> page, SeckillActivity seckillactivity);

    /**
     * 有效活动列表
     * @return
     */
    List<SeckillActivity> validActivity();
}
